package com.leyou.item.api;

import com.leyou.item.pojo.Brand;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface BrandApi {

    //根据商品的id查询商品的名字
    @GetMapping("brand/bid/{bid}")
   String queryBrandByBrandId(@PathVariable("bid") Long bid);
    //根据商品的ids查询商品的列表
    @GetMapping("brand/brands")
    List<Brand> queryBrandByIds(@RequestParam("ids") List<Long> bids);
}
